﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.SharePoint.Client;
using System.Xml.Linq;
using Microsoft.SharePoint;

namespace ListCopyCOM
{
    /*
     * 
     * 
     * http://stevemannspath.blogspot.com/2013/10/sharepoint-2013-adding-rich-text-column.html
     * Field rtfField = list.Fields.AddFieldAsXml("<Field DisplayName=\"Enhanced RTF\" Type=\"Note\" RestrictedMode=\"TRUE\" RichText=\"TRUE\" RichTextMode=\"FullHtml\" RowOrdinal=\"0\" Required=\"FALSE\" EnforceUniqueValues=\"FALSE\" Indexed=\"FALSE\" NumLines=\"6\" IsolateStyles=\"TRUE\" AppendOnly=\"FALSE\" />"
     * 
     * http://geekswithblogs.net/AnneBougie/archive/2009/03/15/part-2-copy-a-sharepoint-list-programmatically.aspx
     * 
     * 
     * 
     * 
     * 
     */
    class Program
    {
        List<string> theFields = new List<string>();
        static void Main(string[] args)
        {

            //Radian 6
            string sourceSiteUrl = "http://wyth/sites/demo/";
            string targetSiteUrl = "http://wyth/sites/demo/";
            string sourceListName = "Announcements";
            string targetListName = "My generic Lists";
           ListCopyComLibrary.CopySharePointList(sourceSiteUrl, targetSiteUrl, sourceListName, targetListName);



        }


    }
}